#include "epoll_server.hpp"

void useTips(int argc)
{
    if(argc != 2)
        std::cout << "poll_server fail to use, the right way to use:poll_server [port]\n";
}

int main(int argc, char* argv[])
{
    useTips(argc);

    unique_ptr<EpollServer> svr = make_unique<EpollServer>(stoi(argv[1]));

    svr->init();
    svr->loop();
    return 0;
}